<!DOCTYPE html>
<html lang="en">
	<head>
			<meta charset="UTF-8">
			<meta name="viewport" content="width=device-width, initial-scale=1">
			<link href="css/style.css" rel="stylesheet">
		<title>html5新增的布局元素</title>
		{% load static%}
        <link rel="stylesheet" type="text/css" href="{% static 'css/7css.css' %}"/>
        <link rel="stylesheet" type="text/css" href="{% static 'css/2.css' %}"/>
        <script>
               function updateId(empno){
			// 设置更新博客查询的url请求地址
			url = "/login/emp/abcde/" + empno;
			window.location = url;
		}
        function guangzu(empno){
			// 设置更新博客查询的url请求地址
			url = "/login/emp/guangzu/" + empno;
			window.location = url;
		}

        </script>
	</head>

	<body bgcolor="mediumblue"  background="{% static 'image/t01d61356d326bd0f99.jpg' %}">
        <!----头部-->
        {% include "htm.html" %}
        <form  method="POST" id="updategettFrom" name="updategettFrom"  action="/login/ss/"  >
            {% csrf_token %}
        <div id="contatiner" style="height: 800px;border: 1px solid gray; margin-top: 5px" >
                <section>
                    
                    <article>
                        <h3  style="display:inline;">{{lstemp.title}}</h3><br>
                        {% ifequal lstemp.genre '1' %}
                        文章类型：<h4  style="display:inline;">技术类</h4>&nbsp;&nbsp;&nbsp;&nbsp;
                        {% else %}
                        {% ifequal lstemp.genre '2' %}
                        文章类型：<h4  style="display:inline;">生活类</h4>&nbsp;&nbsp;&nbsp;&nbsp;
                        {% else %}
                        {% ifequal lstemp.genre '3'  %}
                        文章类型：<h4  style="display:inline;">其它类</h4>&nbsp;&nbsp;&nbsp;&nbsp;
                        {% endifequal %}
                        {% endifequal %}
                        {% endifequal %}
                        发布者：<h4 style="display:inline;">{{lstemp.dept.name}}</h4>
                        {% ifequal faage False %}
                            <button type="button" id="btnDelete" class="btnsubmit" style="background-color:rgb(39, 195, 223);">已关注</button>
                            {% else %}
                            <button type="button" id="btnDelete" class="btnsubmit" style="background-color:rgb(39, 195, 223);" onclick="javascript:guangzu({{ lstemp.dept.empno }});">关注</button>
                            {% endifequal %}
                            {% autoescape off %}
                            <h4>{{lstemp.artile }}</h4><br>
                            {% endautoescape %}
                            
                            {% for item in ww %}
                            评论者：<h4 style="display:inline;">{{item.observer}}</h4>
                            {% autoescape off %}
                            <h5>{{item.comment}}</h5>
                            {% endautoescape %}
                            {% endfor %}
                        <button type="button" id="btnUpdate" class="btnsubmit" onclick="javascript:updateId({{ lstemp.empno }});">评论</button>
                    </article>
                </section>
                <!--侧边栏-->
                
                </div>
            
                </form>
            {% include "yewb.html" %}
            </body>        

</html>